<template>
  <p>欢迎来主界面</p>
  <el-button type="success" @click="goLogin">去登录</el-button>
</template>
<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();
function goLogin() {
  router.push('/login');
}

</script>